home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / yacc.lbr / stdio.h < prev    next >
Text File  |  2011-02-03  |  896b  |  30 lines

  1. /*    standard i/o header file for c86
  2. */
  3.  
  4. #define NULL 0
  5. #define EOF (-1)    /* standard end of file */
  6. #define EOS '\0'    /* standard end of string */
  7. #define stdin 0x8000    /* standard input */
  8. #define stdout 0x8001    /* standard output */
  9. #define stderr 0x8002    /* standard error */
  10. #define AREAD 0        /* ascii read */
  11. #define AWRITE 1    /* ascii write */
  12. #define AUPDATE 2    /* ascii update (take care with this one) */
  13. #define BREAD 4        /* binary update */
  14. #define BWRITE 5    /* binary write */
  15. #define BUPDATE 6    /* binary update */
  16. typedef char FILE;
  17. #define getchar() fgetc(stdin)
  18. #define getc(x) fgetc(x)
  19. #define putchar(x) fputc(x,stdout)
  20. #define putc(x,y) fputc(x,y)
  21. #define ungetch(c) ungetc(c,stdin)
  22.  
  23. /*    definition for setjmp and longjmp
  24. */
  25.  
  26. typedef int jmp_buf[3];
  27.  
  28. /*    end of standard header file
  29. */
  30.